<template>
  <section>
    <button v-on:click="say('hi')">说 Hi</button>
    <button v-on:click="say('what')">说 What</button>
  </section>
</template>

<script>
export default {
  name: "InlineHandler",
  methods: {
    say(message) {
      alert(message);
    }
  }
};
</script>